package bist.believeinstep.administrator.ui;


import bist.believeinstep.administrator.view.LoginView;
import bist.believeinstep.administrator.view.ManagerView;

import com.vaadin.navigator.Navigator;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.UI;

@SuppressWarnings("serial")
public class ApplicationUINavigator extends UI{

	@Override
	protected void init(VaadinRequest request) {
		this.setSizeFull();
		setContent(new ManagerView());
		new Navigator(this, this);
		getNavigator().addView(LoginView.NAME, LoginView.class);
		getNavigator().addView(ManagerView.NAME, ManagerView.class);
		
		getNavigator().addViewChangeListener(new ViewChangeListener(){

			@Override
			public boolean beforeViewChange(ViewChangeEvent event) {
				
				return false;
			}

			@Override
			public void afterViewChange(ViewChangeEvent event) {
				
				
			}
			
			
		});
	}

}
